Skip to content

fix: remove default type param from StreamableHttpService#758

Merged
DaleSeo merged 1 commit intomainfrom
worktree-756
Mar 18, 2026
Merged

fix: remove default type param from StreamableHttpService#758
DaleSeo merged 1 commit intomainfrom
worktree-756

Conversation

@DaleSeo
Copy link
Member

@DaleSeo DaleSeo commented Mar 17, 2026

Fixes #756

Motivation and Context

This PR removes the default type param from StreamableHttpService<S, M> so that Rust can infer M from the constructor arguments, allowing any SessionManager implementation to work.

How Has This Been Tested?

All existing tests pass.

Breaking Changes

No. Every existing usage either explicitly specifies both type parameters or lets the compiler infer M from the constructor argument.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update

Checklist

  • I have read the MCP Documentation
  • My code follows the repository's style guidelines
  • New and existing tests pass locally
  • I have added appropriate error handling
  • I have added or updated documentation as needed

Additional context

@github-actions github-actions bot added T-core Core library changes T-transport Transport layer changes labels Mar 17, 2026
@DaleSeo DaleSeo marked this pull request as ready for review March 17, 2026 16:19
@DaleSeo DaleSeo requested a review from a team as a code owner March 17, 2026 16:19
@DaleSeo DaleSeo self-assigned this Mar 17, 2026
@DaleSeo DaleSeo merged commit e709d0d into main Mar 18, 2026
16 checks passed
@DaleSeo DaleSeo deleted the worktree-756 branch March 18, 2026 15:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

T-core Core library changes T-transport Transport layer changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SessionManager is fixed to LocalSessionManager for SteamableHttpService

2 participants